package com.example.data.factory.entity.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author lhy
 * @since 2025-03-03
 */
@Getter
@Setter
@TableName("dict_data")
@ApiModel(value = "DictData对象", description = "")
public class DictData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("码表数据id")
    @TableId(value = "dict_data_id", type = IdType.AUTO)
    private Integer dictDataId;

    @ApiModelProperty("码值名称")
    private String dictLabel;

    @ApiModelProperty("码值取值")
    private String dictValue;

    @ApiModelProperty("对应码表")
    private Long dictId;

    @ApiModelProperty("码值描述")
    private String description;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "YYYY-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "YYYY-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime updateTime;
}
